package karileet.meeting.profile.service;

import karileet.meeting.profile.MeetingProfile;
import karileet.meeting.profile.ProfileConf;
import android.util.Log;

public class EnableProfileService extends ScheduleService {
	public void initiate() {
		MeetingProfile mp = new MeetingProfile(getApplicationContext());
		ProfileConf pc = new ProfileConf(getApplicationContext());
		if (pc.isScheduleStartEnabled() && !pc.isProfileEnabled() && isDayEnabled()) {
			Log.d(ProfileConf.APP, "Enabling profile");
			mp.enable(true);
			mp.updateWidget();
		}
	}
}
